package com.forenow.demo.demo17;

public class Test {
    public static void main(String[] args) {
        int i=0;
        int ticheng=0;
        Money m1=new Money("小明",8000,0);
        Money m2=new Money("小亮",6000,0);
        do {
            int sum=0;
            int sum1=0;
            sum=(m1.getSal()+m1.getTotal())*i+ticheng;
            sum1=(m2.getSal()+m2.getTotal())*i;
            System.out.println("======期初薪资==========");
            System.out.println(m1.getName()+"的薪资："+m1.getSal()+"| "+"银行卡余额"+sum);
            System.out.println(m2.getName()+"的薪资："+m2.getSal()+"| "+"银行卡余额"+sum1);
            i++;
            ticheng+=500;
        }while (i<4);

    }
}
